package com.heaven.jane.sourcegenerator.commons.constant;

import lombok.Getter;
import lombok.Setter;

/**
 * 相应结果编码
 * @author heaven
 *
 */
public enum ResultCode {
	
	NORMAL(20000l, "正常响应"), AUTH_FAIL(20001l, "认证失败"), SYSTEM_ERROR(20002l, "系统异常");
	
	@Setter
	@Getter
	private Long code;
	
	@Setter
	@Getter
	private String message;
	
	ResultCode(Long code, String message) {
		this.setCode(code);
		this.setMessage(message);
	}
	
}
